package com.kashow.bean.circle;

/**
 * Created by yybs on 16/12/15.
 */

public class ImageInfo {

    /**
     * success : 1
     * imageUrl : http://oh2ucnq1s.bkt.clouddn.com/cd04c54da3814f8c8981ef80f9871b11
     * width : 1080
     * height : 1920
     */

    private int success;
    private String imageUrl;
    private int width;
    private int height;

    public int getSuccess() {
        return success;
    }

    public void setSuccess(int success) {
        this.success = success;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public int getWidth() {
        return width;
    }

    public void setWidth(int width) {
        this.width = width;
    }

    public int getHeight() {
        return height;
    }

    public void setHeight(int height) {
        this.height = height;
    }

    public String getUploadUrl() {
        if (width == 0 && height == 0) {
            return imageUrl;
        }
        return imageUrl + "?" + width+ "_" + height;
    }
}
